Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Configuration Key lombok.builder.toBuilder (Fixes #3758) #3816

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mahmoud-Khawaja
Copy link

Description

This PR introduces the lombok.builder.toBuilder configuration key, allowing toBuilder() to be enabled globally for all @Builder annotations via lombok.config. If not explicitly set in the annotation, the configuration value is applied (default: false).

Changes

  • Added BUILDER_TO_BUILDER key in ConfigurationKeys.java.
  • Integrated config key handling in HandleBuilder.java.
  • Ensured explicit annotation settings override configuration values.

This provides more flexibility in testing and code generation.
Fixes #3758.

@Mahmoud-Khawaja Mahmoud-Khawaja changed the title Add lombok.builder.toBuilder configuration key to enable toBuilder by… Add Configuration Key lombok.builder.toBuilder (Fixes #3758) Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add configuration key lombok.builder.toBuilder
1 participant